package com.honglv.mapper;

import com.honglv.pojo.dto.UpdateInfoDTO;
import com.honglv.pojo.entity.Admin;
import com.honglv.pojo.entity.User;
import com.honglv.pojo.result.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Auther: 生
 * @Date: 2024/04/07/18:06
 * @Description:
 */
@Mapper
public interface PersonalInfoMapper {

    @Select("SELECT * FROM tb_admin where id = #{id}")
    Admin selectAdminById(Long id);

    @Select("SELECT * FROM tb_user where id = #{id}")
    User selectUserById(Long id);

    void updateInfo(UpdateInfoDTO updateInfoDTO);
}
